package cn.yunhe.study.dubbo.api;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ProviderStart {
    public static void main(String[] args) {
        System.out.println("provider-of-testcore开始注册");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"dubbo_provider.xml"});
        context.start();
        System.out.println("provider-of-testcore注册完毕");
        try {
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
